package com.cy.milktea.mapper;

import com.cy.milktea.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrderMapper {

    int insert(Order order);

    int update(Order order);

    List<Order> select(@Param("orderID") String orderID,
                       @Param("minDate") Date minDate,
                       @Param("maxDate") Date maxDate,
                       @Param("sort") String sort);

}
